package com.hk.webapp.service.impl;

import com.hk.webapp.bean.SysUserArticleCate;
import com.hk.webapp.dao.SysUserArticleCateMapper;
import com.hk.webapp.service.SysUserArticleCateService;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import javax.annotation.Resource;

@Service
@Transactional
public class SysUserArticleCateImpl implements SysUserArticleCateService {
    @Resource
    private SysUserArticleCateMapper sysUserArticleCateMapper;


    @Override
    public SysUserArticleCate selectBySysUserId(Integer id) {
        return sysUserArticleCateMapper.selectBySysUserId(id);
    }

    @Override
    @Transactional
    public int insert(SysUserArticleCate sysUserArticleCate) {
        return sysUserArticleCateMapper.insertSelective(sysUserArticleCate);
    }

    @Override
    @Transactional
    public int updateIdsById(Integer id, String ids) {
        return sysUserArticleCateMapper.updateIdsById(id,ids);
    }
}
